package spring;

import junit.framework.TestCase;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zhangxin
 * @date 2021/4/16
 */
public class Application extends TestCase {


    @Test
    public void testBeanFactory(){
        AnnotationConfigApplicationContext spring = new AnnotationConfigApplicationContext("spring");

        Object helloWorld = spring.getBean("helloWorldChineseImpl");

    }

}
